package cn.good.yan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * SpringBoot项目 - 分布式事务
 *
 * @author shengren.yan
 * @create 2023-09-27
 */
// 不使用默认数据源配置，使用DataSourceProxyConfig
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
public class BootApplication {

     public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);
     }

}